﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _16_Jan_Practice
{
    class Account
    {
        public int id { set; get; }
        public decimal money { set; get; }
        private static int accountCounter = 0;

        public Account()
        {
            id = ++accountCounter;
            money = 0;
            Console.WriteLine("Your account ID is {0}", id);
        }
        public decimal MoneyAmount
        {
            set
            {
                money += value;
            }
            get { return money; }
        }
    }
}
